<template>
  <div class="gs">
    <h3>孙组件</h3>
    <button @click="passf">点我向父组件传参</button>
    <input type="text" @input="iptfn" />
  </div>
</template>

<script>
export default {
  methods: {
    passf () {
      this.$emit('passf', 'xjj')
    },
    iptfn () {
      this.$emit('passv', 19)
    }
  }
}
</script>

<style></style>
